// 引入mongoose接口
const mongoose = require("mongoose");
// 初始化model
const schema=new mongoose.Schema({
    adminName: String,// 管理员账号
    adminPassword: String 
});
// 添加并定义model
const adModel=mongoose.model("adminsModel",schema,"admins")

mongoose.connect(
    "mongodb://tangzhenhua:Lovo123456@182.92.214.223:8084/heshumiao",

    {
        useNewUrlParser: true,
        useUnifiedTopology: true,
        auth: { authSource: "admin" }
      },
   
);

module.exports={adModel};
